#include "stdafx.h"
#include "jumping-numbers.h"

#define BOOST_TEST_MODULE jumping-numbers-test
#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE(example1) {
    std::vector<int> myOutput = jumpNumbersLessThan(20);
    std::vector<int> correctOutput = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ,12};
    BOOST_CHECK_EQUAL_COLLECTIONS(myOutput.begin(), myOutput.end(), correctOutput.begin(), correctOutput.end());
}

BOOST_AUTO_TEST_CASE(example2) {
    std::vector<int> myOutput = jumpNumbersLessThan(105);
    std::vector<int> correctOutput = 
        { 0, 1, 2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,12,
         21, 23, 32, 34 ,43 ,45 ,54 ,56 ,65,
         67, 76, 78 ,87 ,89 ,98 ,101 };
    BOOST_CHECK_EQUAL_COLLECTIONS(myOutput.begin(), myOutput.end(), correctOutput.begin(), correctOutput.end());
}
